javascript:
var%20target='803|843';
var%20doc=document;
if(window.frames.length>0)doc=window.main.document;
function%20isScreen(x){
p=location.search;
r=new%20RegExp('\\b'+x+'\\b', "i");
if(p.match(r)){return%201;}else{location.search=p.replace(/.*?(\bvillage=\d+).*/i,'?$1&'+x);return%200;}}
function%20maxU(u){
return%20parseInt(doc.getElementById(u).getAttribute('maxUnits'));
}
function%20isClr(){
return%20!(maxU('unit_input_spear') || maxU('unit_input_sword') || maxU('unit_input_axe') || maxU('unit_input_archer') || maxU('unit_input_spy') || maxU('unit_input_light') || maxU('unit_input_marcher') || maxU('unit_input_heavy') || maxU('unit_input_ram') || maxU('unit_input_catapult'));
}
if(location.search.match(RegExp('\\b'+'screen=place&try=confirm'+'\\b'))){
}else if(isScreen('screen=place')){
if(isClr()){
l=doc.getElementsByClassName('village_switch_link');
location.href=l[1].href;
}else{
selectAllUnits(true);
doc.getElementById('inputx').value=target.split('|')[0];
doc.getElementById('inputy').value=target.split('|')[1];
}}
end();